module.exports = (options) => {
  return async (ctx, next) => {
    await next();
    const template = 'status.html';
    switch (ctx.status) {
      case 404: await ctx.render(template, {
        title: '页面不存在',
        message: '走丢了,怎么也找不到页面!'
      }); break;

    };
  }
};